<template>
  <div class="about">
    <h1>count{{count}}</h1>
    <button @click="addcount">count修改</button>
   
  </div>
</template>

<script lang="ts">
 import {defineComponent} from "vue"
export default defineComponent({
  name :"About",
  data() {
    return {
      count :0
    }
  },
  methods:{
   addcount(){
    this.count++
   }
  }
});
 

</script>
